<?php

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePosterImage extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        DB::table('qs_config')->insert([
            'name' => 'POSTER_COVER',
            'type' => 'picture',
            'title' => '海报封面',
            'group' => '1',
            'extra' => '',
            'remark' => '海报封面',
            'create_time' => time(),
            'update_time' => time(),
            'status' => '1',
            'value' => '',
            'sort' => '1',
        ]);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        DB::table('qs_config')->where('name', 'POSTER_COVER')->delete();
    }
}
